<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="~{/fragment/header::header}"></div>
    <div th:replace="~{/fragment/header::header-css}"></div>
    <div th:replace="~{/fragment/header::header-nav}"></div>
</head>
<body>
<div class="container">
    <a th:href="@{/user/insert}" class="btn btn-primary">新增</a>
    <table class="table table-striped">
        <thead>
            <tr>
                <th scope="row">序号</th>
                <th>用户账号</th>
                <th>用户密码</th>
            </tr>
        </thead>
        <tbody>
        <tr th:each="users:${list}">
            <td th:text="${user.id}"></td>
            <td th:text="${users.username}"></td>
            <td th:text="${users.password}"></td>
            <td>
                <a th:href="@{/user/edit/{id}(id=${users.id})}" class="btn btn-info">修改</a>
                <a th:href="@{/user/detail/{id}(id=${users.id})}" class="btn btn-success">详细信息</a>
                <a href="#" class="btn btn-success>删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div th:repalace="~{/fragment/header:: footer-js}"></div>
<div th:repalace="~{/fragment/footer :: footer}"></div>
</body>
</html>
